package com.llkj.qingnianguoxue.mine;

import android.content.Intent;
import android.os.Bundle;
import android.widget.TextView;

import com.llkj.qingnianguoxue.R;
import com.llkj.qingnianguoxue.base.BaseActivity;
import com.llkj.qingnianguoxue.bean.HelpDetailBean;
import com.llkj.qingnianguoxue.http.HttpMethod;
import com.llkj.qingnianguoxue.util.GsonUtil;

/**
 * 帮助详情
 */
public class HelpDetailActivity extends BaseActivity {
    private TextView tvTitle, tvContent;//标题,详情
    private String mDetailId;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_help_detail);
        setTitle("帮助中心", true, TITLE_TYPE_IMG, R.drawable.icon_back, true, TITLE_TYPE_TEXT, "意见反馈");
        initStatusbar(TSATUSBAR_TYPE_BLACK_TEXT,rlTitle,R.color.gray_bar);

        tvTitle = (TextView) findViewById(R.id.tv_detail_title);
        tvContent = (TextView) findViewById(R.id.tv_content);
        Intent intent = getIntent();
        mDetailId = intent.getStringExtra("id");
        String issue = intent.getStringExtra("issue");
        String answer = intent.getStringExtra("answer");

        tvTitle.setText(issue);
        tvContent.setText(answer);
    }

    @Override
    protected void rightDoWhat() {
        super.rightDoWhat();
        Bundle bundle = new Bundle();
        bundle.putString("id", mDetailId);
        startActivity(FeedBackActivity.class, bundle);
    }

}
